﻿using Manso.cBot.Common;

namespace Manso.cBot.DefaultModules.Core
{
    public class VersionCommand : ICommand
    {
        private readonly ListenToEnum _listenTo;
        private readonly string _command;
        private readonly string _help;
        private readonly string _usage;
        private readonly AccessControlLevel _accessLevel;

        public VersionCommand()
        {
            _listenTo = ListenToEnum.Both;
            _command = "Version";
            _help = "Show the cBot version";
            _usage = "version";
            _accessLevel = AccessControlLevel.Guest;
        }

        public ListenToEnum ListenTo
        {
            get { return _listenTo; }
        }

        public string Command
        {
            get { return _command; }
        }

        public string Help
        {
            get { return _help; }
        }

        public string Usage
        {
            get { return _usage; }
        }

        public AccessControlLevel AccessLevel
        {
            get { return _accessLevel; }
        }

        public void ExecuteCommand(string[] args, string executedBy, ListenToEnum listenTo)
        {
            cBotContext.Instance.SendPrivateMessage(executedBy, "1.1");
        }
    }
}
